import { IBugParams } from '../interface/bug'
import * as request from './request'

export async function addBug(body: IBugParams) {
  try {
    const data = request.post(JSON.stringify(body), '/api/web/bug/add')
    return data
  } catch (e) {
    return (e)
  }
}
